<div class="main-content">
	<div class="page-content">
		<div class="row">
			<div class="page-header">
    			<h1>加油站管理</h1>
    		</div>
    		<div class=" col-md-12 col-sm-12 col-xs-12 form">
                <div class="row">
                <form action="<?php echo base_url().'admin/gasstation/qiao_hexiao'?>" method="get">
                   <div class="wh">
                    	<label>加油站名称：</label>
                        <input type="text"  name="gasstation_name" value="<?php if (isset($gasstation_name))echo $gasstation_name;?>"/>
                        
                   </div>
                   <div class="wh">
                   		<button class="btn btn-sm btn-info" type="submit"><i class="icon-search"></i>查询</button>
                   </div>
                </form>
                </div>
			</div>

			<div class="col-xs-12 margin_t margin_b">
				<div class="table-responsive  tab">
				<form action="<?php echo base_url()."admin/gasstation/del_some_gasstation"?>" method="post" id="delForm">
					<table id="sample-table-1" class="table table-striped table-bordered table-hover">
						<thead>
							<tr>
								<th>加油站名称</th>
								<th>加油站地址</th>
								<th>结算日期</th>
                                <th>订单总金额</th>
                                <th>总服务费</th>
							</tr>
						</thead> 
						<tbody>
						<?php if (isset($result)&&count($result)>0){
                            	foreach ($result as $gasstation){
                            	    if ($gasstation->del_flg==0){
                            	?>
								<tr>
									<td><p><?php echo $gasstation->gasstation_name;?></p></td>
									<td><p><?php echo $gasstation->address;?></p></td>
									<td><p><?php echo $gasstation->settle_time;?></p></td>
									<td><p><?php echo $gasstation->total;?></p></td>
									<td><p><?php echo $gasstation->tixian;?></p></td>
									
	                            </tr>
    						<?php }}
                            }else{?>
                            <tr>
                            	<td colspan="12">无数据</td>
                            </tr>
                            <?php }?>
                            </tbody>
                         </table>
                     </form>
                     </div><!-- /.table-responsive -->
            	</div>
            	<div class="col-sm-12">
                	<div class="modal-footer no-margin-top">
	                	<div class="pull-left record">
							共<?php echo $count;?>条记录
	                    </div>
                		<?php if (isset($page))echo $page;?>
                	</div>
                </div>
		</div>
	</div>
</div>